﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EtlComm;

namespace ETLHandler
{
    public class EtlDataFactory
    {
        public IExtracter CreateExtrater<T>() where T:DataFactory,new()
        {
            return (new T()).CreateExtrater();
        }

        public ILoader CreateLoader<T>() where T:DataFactory,new()
        {
            return (new T()).CreateLoader();
        }

        public IMap CreateMap<T>() where T:DataFactory,new()
        {
            return (new T()).CreateMap();
        }
    }
}
